package com.abaaba.project2.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminUserStatisticsVO {

    /**
     * errno : 0
     * data : {"columns":["day","users"],"rows":[{"users":3}]}
     * errmsg : 成功
     */

    private int errno;
    private DataBean data;
    private String errmsg;

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public static class DataBean {
        private List<String> columns;
        private List<RowsBean> rows;

        public List<String> getColumns() {
            return columns;
        }

        public void setColumns(List<String> columns) {
            this.columns = columns;
        }

        public List<RowsBean> getRows() {
            return rows;
        }

        public void setRows(List<RowsBean> rows) {
            this.rows = rows;
        }

        @AllArgsConstructor
        @NoArgsConstructor
        public static class RowsBean {
            /**
             * users : 3
             */

            private Long users;

            public Long getUsers() {
                return users;
            }

            public void setUsers(Long users) {
                this.users = users;
            }
        }
    }
}
